package com.wsj.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.wsj.web.vo.homeSite.HomeSiteNewsClass;

public interface IHomeSiteNewsClassDao {

public boolean addNewsClass(HomeSiteNewsClass hs) throws DataAccessException;
	
	public boolean deleteNewsClass(Long hsId) throws DataAccessException;
	
	public boolean deleteNewsClassByParentId(Long parentId) throws DataAccessException;
	
	public boolean updateNewsClass(HomeSiteNewsClass hs) throws DataAccessException;
	
	public HomeSiteNewsClass loadNewsClassById(Long hsId) throws DataAccessException;
	
	public List loadNewsClassList(Long parentId,Integer typeId) throws DataAccessException;
	
	public List loadListByClassTypeId(Integer classTypeId) throws DataAccessException;
	
	public List loadAllNewsClass() throws DataAccessException;
	
	public boolean updateSeq(Long newsClassId, Long parId) throws DataAccessException;
	
	public String getChildStr(List childList,Integer typeId,Integer branch,Integer selected) throws DataAccessException;

	public HomeSiteNewsClass loadNewsClassByNames(String names, Integer typeId)throws DataAccessException;

	public HomeSiteNewsClass loadNewsClassByNames(String names)throws DataAccessException;

	/*****
	 * 通过类型id,获取第一级分类下面的列表
	 * @param typeId
	 * @return
	 * @throws DataAccessException
	 */
	public List loadFirstHomeSiteNewsClassByTypeDao(Integer typeId)throws DataAccessException;

	/*****
	 * 通过类型id,和父类id,获取下面的分类列表
	 * @param typeId
	 * @param parenId
	 * @return
	 * @throws DataAccessException
	 */
	public Map loadSecondHomeSiteNewsClassByTypeDao(Integer typeId, Long parenId)throws DataAccessException;

	/*****
	 * 通过分类id,加载广告描述列表
	 * @param classId
	 * @return
	 * @throws DataAccessException
	 */
	public Map loadAdBannerListByHomeSiteNewsClassIdDao(Long classId)throws DataAccessException;

	/***
	 * 通过父分类id,资讯类型,加载前几位资讯分类列表
	 * @param id
	 * @param classTypeId
	 * @param top
	 * @return
	 */
	public List<HomeSiteNewsClass> loadSCHQNewsClassListDao(Long classId, Integer classTypeId, Integer top);
	
}
